﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Qianli.DirSir.Model;
using Qianli.DirSir.DAL;
namespace Qianli.DirSir.BLL
{
   public class DHLUPSFEDEXEMSInfoBLL
    {
       DHLUPSFEDEXEMSInfoDAL DAL = new DHLUPSFEDEXEMSInfoDAL();
       /// <summary>
       ///获取快递公司信息
       /// </summary>
       /// <returns></returns>
       public List<DHLUPSFEDEXEMSInfo> GetDHLUPSFEDEXEMSInfo()
       {
           return DAL.GetDHLUPSFEDEXEMSInfo();
       }
       /// <summary>
       /// 添加快递公司信息
       /// </summary>
       /// <param name="dh"></param>
       /// <returns></returns>
       public int AddDHLUPSFEDEXEMSInfo(DHLUPSFEDEXEMSInfo dh)
       {
           return DAL.AddDHLUPSFEDEXEMSInfo(dh);
       }

       /// <summary>
       /// 根据快递编号删除快递公司
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public int DelDHLUPSFEDEXEMSInfo(int id)
       {
           return DAL.DelDHLUPSFEDEXEMSInfo(id);
       }
       /// <summary>
       /// 根据id搜索快递表信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public DHLUPSFEDEXEMSInfo getDHLUPSFEDEXEMSInfoByid(int id)
       {
           return DAL.getDHLUPSFEDEXEMSInfoByid(id);

       }
       /// <summary>
       /// 修改快递表信息
       /// </summary>
       /// <param name="dh"></param>
       /// <returns></returns>
       public int UptDHLUPSFEDEXEMSInfo(DHLUPSFEDEXEMSInfo dh)
       {
           return DAL.UptDHLUPSFEDEXEMSInfo(dh);
       }
       /// <summary>
       /// 根据姓名查询
       /// </summary>
       /// <param name="DHLUPSFEDEXEMSName"></param>
       /// <returns></returns>
       public List<DHLUPSFEDEXEMSInfo> SearchDHLUPSFEDEXEMSInfo(string DHLUPSFEDEXEMSName)
       {
           return DAL.SearchDHLUPSFEDEXEMSInfo(DHLUPSFEDEXEMSName);
       }
    }
}
